package com.astrofizzbizz.stoneedgegui.utilities;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class StoneEdgeIIIException extends Exception 
{

	private static final long serialVersionUID = 2684561007090710651L;
	public StoneEdgeIIIException(String smessage)
	{
		super(smessage);
	}
	public StoneEdgeIIIException(String smessage, Throwable cause)
	{
		super(smessage, cause);
	}
	public void messageDialog(JFrame parentFrame)
	{
		JOptionPane.showMessageDialog(parentFrame,"StoneEdgeIIIException: " + " " + getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
	}
	public void messageDialog(JDialog parentFrame)
	{
		JOptionPane.showMessageDialog(parentFrame,"StoneEdgeIIIException: " + " " + getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
	}
	public void printErrorMessage()
	{
		System.out.println("StoneEdgeIIIException: " + " " + getMessage());
	}

}
